package com.woniu.service;

import com.woniu.dto.OrderDto;
import com.woniu.dto.OrderPayDto;
import com.woniu.pojo.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yellow Docker
 * @since 2022-11-16
 */
public interface IOrderService extends IService<Order> {

    List<Order> getByUserId(Integer userId);

    String createOrder(OrderDto orderDto);

    int updateOrderStatus(OrderPayDto orderPayDto);

    int updateStatus(String orderSn);

    int updateStatusPro(String orderSn);

    Integer getShopId(Integer id);
}
